{include file="header.html"}


<script type="text/javascript">
$(function(){
	 $('#h_required_service_date').datetimepicker({changeMonth: true,changeYear: true});
    $('#acategory_form').validate({
    	 errorPlacement: function(error, element){
             $(element).next('.noerror').hide();          
             $(element).after(error);
         },
         success       : function(element){
         	 $(element).next('.noerror').show();  
         	 $(element).remove();
         	
         },
        rules : {    
        	h_short_name : {
                required : true
            },
            h_name :{
                required : true
            },
            field :{
            	required : true
            },
            h_order :{
                required : true
            },
       
            h_address    :{
            	  required : true
            },
            h_linkman:{
            	  required : true
            },
            h_linkman_tel : {
            	  required : true
            }
        },
        messages : {
        	h_short_name : {
                required : '运程简称必填'
            },
            h_name : {
                required : '运程名必填'
            },
            field : {
                required : '确认类型必填'
            },
            h_order : {
                required : '运程顺序必填'
            },
            h_address : {
                required : '地址必填'
            },
            h_linkman    : {
            	required     : '联系人必填'
            },
            h_linkman_tel : {
            	required : '联系电话必填'
            }
           
        }
    });
});




$(function(){
    $('#wm_required_service_date').datepicker({dateFormat: 'yy-mm-dd'});
    $('#wm_loading_date').datepicker({dateFormat: 'yy-mm-dd'});
    $('#wm_dispatch_date').datepicker({dateFormat: 'yy-mm-dd'});
    
});



</script>




<style>




.infoTable{
margin: 0 0 0 0;
width: 60%;
}
.info th {
    text-align: right;
    padding-right: 15px;
    width: 140px;
    font-size: 14px;
}
.info td{
font-size: 14px;
width: 20%;
padding-left: 30px;
    padding-top: 10px;
}




</style>


<div id="rightTop">
	<p>{$lang.haul}</p>
	<ul class="subnav">
		<li><a class="btn1" href="index.php?app=haul">{$lang.manage}</a>
		</li>
		<li>
			<!-- {if $acategory.cate_id} -->
			<a class="btn1" href="index.php?app=haul&amp;act=add">{$lang.edit}</a>
		<!-- {else} -->
			<span>{$lang.edit}</span>
		<!-- {/if} -->
		</li>
	</ul>
</div>



<div class="info">
	<form method="post" enctype="multipart/form-data" id="acategory_form">
		<table class="infoTable">

		
		
		
			<tr>
				<th class="paddingT15"><b style="color: #ff0000">*&nbsp;</b>运程简称:<label ></label></th>
				<td class="paddingT15 wordSpacing5"><input
					class="infoTableInput" id="h_short_name" type="text"
					name="h_short_name" value="{$haul.h_short_name}" />
					<label for="wm_carrier" class="noerror">运程简称必填</label>
					</td>
			</tr>
			<tr>
				<th class="paddingT15"><b style="color: #ff0000">*&nbsp;</b>{$lang.h_name}:<label ></label></th>
				<td class="paddingT15 wordSpacing5"><input
					class="infoTableInput" id="h_name" type="text"
					name="h_name" value="{$haul.h_name}" />
					<label for="wm_carrier" class="noerror">运程名必填</label></td>
			</tr>

			<tr>
				<th class="paddingT15"><b style="color: #ff0000">*&nbsp;</b>确认类型:<label ></label></th>
				<td class="paddingT15 wordSpacing5">
	<select   class="infoTableInput" name="field" id="field" style="width: 255px;">{html_options options=$typelist selected=$haul.h_type}</select>
	<label for="wm_carrier" class="noerror">确认类型必填</label></td>
	
	     		<tr style="display: none">
				<th class="paddingT15">{$lang.h_required}:</th>
				<td class="paddingT15 wordSpacing5"><input
					class="infoTableInput" id="h_required" type="text"
					name="h_required" value="{$haul.h_required}" />
			</tr>
			
					<tr>
				<th class="paddingT15"><b style="color: #ff0000">*&nbsp;</b>{$lang.h_order}:<label ></label></th>
				<td class="paddingT15 wordSpacing5"><input
					class="infoTableInput" id="h_order" type="text"
					name="h_order" value="{$haul.h_order}" />
					<label for="wm_carrier" class="noerror">运程顺序必填</label></td>
			</tr>
			
					<tr>
				<th class="paddingT15"><b style="color: #ff0000">*&nbsp;</b>{$lang.h_address}:<label ></label></th>
				<td class="paddingT15 wordSpacing5"><input
					class="infoTableInput" id="h_address" type="text"
					name="h_address" value="{$haul.h_address}" />
					<label for="wm_carrier" class="noerror">地址必填</label></td>
			</tr>
			
					<tr>
				<th class="paddingT15"><b style="color: #ff0000">*&nbsp;</b>{$lang.h_linkman}:<label ></label></th>
				<td class="paddingT15 wordSpacing5"><input
					class="infoTableInput" id="h_linkman" type="text"
					name="h_linkman" value="{$haul.h_linkman}" />
					<label for="wm_carrier" class="noerror">联系人必填</label></td>
			</tr>
			
					<tr>
				<th class="paddingT15"><b style="color: #ff0000">*&nbsp;</b>{$lang.h_linkman_tel}:<label ></label></th>
				<td class="paddingT15 wordSpacing5"><input
					class="infoTableInput" id="h_linkman_tel" type="text"
					name="h_linkman_tel" value="{$haul.h_linkman_tel}" />
					<label for="wm_carrier" class="noerror">联系电话必填</label></td>
			</tr>
			
					<tr>
				<th class="paddingT15">{$lang.h_note}:<label ></label></th>
				<td class="paddingT15 wordSpacing5">
					<textarea  name="h_note" id="h_note" rows="3">{$haul.h_note}</textarea><label ></label>
			</tr>
			
			
			
				<!-- {if $haul.h_finished==null} -->
               
					<tr>
				<th class="paddingT15">{$lang.h_required_service_date}:<label ></label></th>
				<td class="paddingT15 wordSpacing5"><input
					class="infoTableInput" id="h_required_service_date" type="text"
					name="h_required_service_date" value="-" /><label ></label>
			</tr>
			
			<!--{else}-->
					<tr>
				<th class="paddingT15">{$lang.h_required_service_date}:<label ></label></th>
				<td class="paddingT15 wordSpacing5"><input
					class="infoTableInput" id="h_required_service_date" type="text"
					name="h_required_service_date" value="{$haul.h_required_service_date|date:Y-m-d H:i}" /><label ></label>
			</tr>
			
			
			 <!-- {/if} -->
			
			
					<tr>
				<th class="paddingT15">{$lang.h_finished}:<label ></label></th>
				
				<!-- {if $haul.h_finished==2} -->
                                                   
                      <td class="paddingT15 wordSpacing5"><input  readonly="readonly" style="background-color:#eeeeee"
					class="infoTableInput" id="h_finished" type="text"
					name="h_finished" value="完成" /><label ></label>
                                                     
                 <!--{elseif $haul.h_finished==0}-->
                                                       
                                                       
                      <td class="paddingT15 wordSpacing5"><input
					class="infoTableInput" id="h_finished" type="text"  readonly="readonly" style="background-color:#eeeeee"
					name="h_finished" value="未开始" /><label ></label>
                 <!--{elseif $haul.h_finished==-1}-->
                 		
                 		
                 		
                  <td class="paddingT15 wordSpacing5"><input
					class="infoTableInput" id="h_finished" type="text"   readonly="readonly" style="background-color:#eeeeee"
					name="h_finished" value="异常" /><label ></label>
                 <!-- {/if} -->

					
			</tr>

			<tr>
				<th class="paddingT15">{$lang.h_finished_date}:</th>
				<td class="paddingT15 wordSpacing5"><input
					class="infoTableInput" id="h_finished_date" type="text"  readonly="readonly" style="background-color:#eeeeee"
					name="h_finished_date" value="{$haul.h_finished_date|date:Y-m-d H:i}" />
			</tr>


      
      <!-- {if $stauts==1} -->

			<tr>
				<th></th>
				<td class="ptb20"><input class="formbtn" type="submit"
					name="Submit" value="{$lang.submit}" /> <input class="formbtn"
					type="reset" name="reset" value="{$lang.reset}" /></td>
			</tr>
	 <!-- {/if} -->
			
			
		</table>
	</form>
</div>



 <!-- {if $stauts==1} -->



<form method="post" enctype="multipart/form-data"
	action="index.php?app=waybill&act=subadd" style="min-height: 50px;"
	id="form11">
	
	
 <section class="section_maeginstyle" id="highchart" style="margin-top:70px;">
    <article class="module width_full" style="padding:0 0 20px 0;margin:0;width:100%">
	
	
	<div id="rightTop">
		<p>运程采集信息</p>
		<ul class="subnav">
			<li><span>{$lang.manage}</span></li>
			<li><a class="btn1" href="index.php?app=haul&amp;act=add_haul_define_collect&amp;id={$haul.h_tid}">{$lang.add}</a>
			</li>
		</ul>
	</div>
	<div class="tdare">
		



		<table width="100%" cellspacing="0" class="dataTable">
			<!--{if $haul_define_collect}-->
			<tr class="tatr1">
				<td width="20" class="firstCell"><input type="checkbox"
					class="checkall" /></td>
				<td>采集信息类别</td>
				<td>采集信息描述</td>


				<td style="text-align: center; width: 100px">{$lang.handler}</td>
			</tr>
			<!--{/if}-->
			
			
			
			<!--{foreach from=$haul_define_collect item=s}-->
			<tr class="tatr2">
				<td class="firstCell"><input type="checkbox" class="checkitem"
					value="{$s.hc_tid}" />
				</td>
				
				
				
				<!--{if $s.h_collect_type==0}-->
			<td>扫描</td>

			<!--{/if}-->
				<!--{if  $s.h_collect_type==1}-->
			<td>输入</td>

			<!--{/if}-->
				<!--{if $s.h_collect_type==2}-->
			<td>数字输入</td>

			<!--{/if}-->
						<!--{if $s.h_collect_type==3}-->
			<td>拍照</td>

			<!--{/if}-->
				
						<!--{if $s.h_collect_type==4}-->
			<td>录音</td>

			<!--{/if}-->
				
				
				
				<td>{$s.h_collect_des}</td>

				<td style="text-align: center;"><a
					href="index.php?app=haul&amp;act=edit_haul_define_collect&amp;id={$s.hc_tid}">{$lang.edit}</a>
					| <a
					href="javascript:drop_confirm('{$lang.drop_confirm}', 'index.php?app=haul&amp;act=drop_haul_define_collect&amp;id={$s.hc_tid}');">{$lang.drop}</a>
				</td>

			</tr>
			<!--{foreachelse}-->
			<tr class="no_data">
				<td colspan="7">{$lang.no_data}</td>
			</tr>
			<!--{/foreach}-->
		</table>


	<!--{if $haul_define_collect}-->
	<div id="dataFuncs">
		<div class="pageLinks">{include file=page.bottom.html}</div>
		<div id="batchAction" class="left paddingT15">
			&nbsp;&nbsp;
			 <input class="formbtn batchButton" type="button"
				value="{$lang.drop}" name="id" uri="index.php?app=haul&act=drop_haul_define_collect"
				presubmit="confirm('{$lang.drop_confirm}');" /> &nbsp;&nbsp;
			<!--<input class="formbtn batchButton" type="button" value="lang.update_order" name="id" presubmit="updateOrder(this);" />-->
		</div>
	</div>
	<div class="clear"></div>
	<!--{/if}-->


	
	</div>
	
	
	
	<style>
.infoTable p {
	display: inline-block;
	width: 100px;
}

.dataTable td {
	font-size: 12px;
}
</style>
</form>

<!--{else}-->
                                       
<div class="jui-cut-label fn-mt25">
	        <div class="jui-message-bar">采集信息</div>
	    </div>
	      <table class="info">

		  
		 <!--{foreach from=$haul_define_collect item=h}-->
		 
		
		 
		  <!-- {if $h.h_collect_type==0} -->
                     
                     <tr>	<td class="">采集信息类别：扫描  </td>
                     
                            <td class="">采集信息描述：{$h.h_collect_des}  </td>
                     			
                     	   <td class="">采集信息：
                     	    <!-- {if !$h.h_collect_val} -->
                     	   -
                     	    <!--{else}-->
                     	    {$h.h_collect_val}
                     	             <!-- {/if} -->
                     	     
                     	    </td>
                     
                      </tr>

                 <!--{elseif $h.h_collect_type==1}-->
              
				
				 <tr>	<td class="">采集信息类别：输入  </td>
                     
                            <td class="">采集信息描述：{$h.h_collect_des}  </td>
                     			
                     	    <td class="">采集信息：
                     	    <!-- {if !$h.h_collect_val} -->
                     	   -
                     	    <!--{else}-->
                     	    {$h.h_collect_val}
                     	             <!-- {/if} -->
                     	     
                     	    </td>
                      
                      </tr>
				
				
                 <!--{elseif $h.h_collect_type==2}-->
	
				 <tr>	<td class="">采集信息类别：数字输入  </td>
                     
                            <td class="">采集信息描述：{$h.h_collect_des}  </td>
                     			
                     	    <td class="">采集信息：
                     	    <!-- {if !$h.h_collect_val} -->
                     	   -
                     	    <!--{else}-->
                     	    {$h.h_collect_val}
                     	             <!-- {/if} -->
                     	     
                     	    </td>
                      
                      </tr>
                 		
                  <!--{elseif $h.h_collect_type==3}-->
              
						 <tr>	<td class="">采集信息类别：拍照  </td>
                     
                            <td class="">采集信息描述：{$h.h_collect_des}  </td>
                     			
                     	    <td class="caiji_photo"><span>采集信息：
                     	    </span>
                     	    
                     	       <!-- {if !$h.h_collect_val} -->
                     	   -
                     	    <!--{else}-->
                     	    {$h.h_collect_val}
                     	             <!-- {/if} -->
                     	     
                     	
                     	    
                     	  <a href="/{$h.h_collect_des}" target="_blank">
				              <img src="/{$h.h_collect_des}"  width="80" height="80"></a>
				              
				              
				              
                     	    </td>
                      
                      </tr>
				
				
				
                  <!--{elseif $h.h_collect_type==4}-->
               
              
              
               <tr>	<td class="">采集信息类别：录音  </td>
                     
                            <td class="">采集信息描述：{$h.h_collect_des}  </td>
                     			
                     	    <td class="">采集信息：
                     	<audio controls="controls"> <source
						src="/{$h.h_collect_des}" type="audio/mpeg">

					你的浏览器太老了，请更新否则没法听语音 </audio>	     
                     	   
                     	    </td>
                      
                      </tr>
				
              
                 <!-- {/if} -->
           
		          
            
		 
		 
		 <!--{/foreach}-->
		 
		
</table>

	 <!-- {/if} -->




{include file="footer.html"}